// Fill out your copyright notice in the Description page of Project Settings.


#include "UI/HallUI/HallHUD.h"
#include "UI/HallUI/UMG/UI_MainHall.h"

AHallHUD::AHallHUD()
{
	// 加载蓝图资源。
	static ConstructorHelpers::FClassFinder<UUI_MainHall> HallMain_BPClass(TEXT("/Game/UI/Hall/WBP_MainHall"));
	MainHallClass = HallMain_BPClass.Class;
}

void AHallHUD::BeginPlay()
{
	Super::BeginPlay();

	// 创建UI，并添加到窗口。
	MainHall = CreateWidget<UUI_MainHall>(GetWorld(), MainHallClass);
	MainHall->AddToViewport();
}
